module.exports={
    entry:["./src/js/global.js","./src/js/main.js"],
    output:{
        filename:"bundle.js"
    },
    module:{
        loaders:[
            {
                test:[/\.es6$/],
                exclude:/node_modules/,
                loader:'babel-loader',
                query:{
                    presets:['react','es2015']
                }
            }
        ]
    },
    resolve:{
        extensions:[' ','.js','.es6']
    }
};